package com.damai.action.quartz;

import java.lang.reflect.Method;

import org.quartz.JobExecutionException;

public class QuartzMethodInfo {
	private Method method;
	private Object model;
	public Method getMethod() {
		return method;
	}
	public void setMethod(Method method) {
		this.method = method;
	}
	public Object getModel() {
		return model;
	}
	public void setModel(Object model) {
		this.model = model;
	}

	public void execute() throws JobExecutionException{
		try {
			method.invoke(model);
		}catch (Exception e) {
			throw new JobExecutionException(e);
		}
	}
}
